import request from '@/utils/request'

// 查询教改项目列表
export function listReform(query) {
  return request({
    url: '/village/reform/list',
    method: 'get',
    params: query
  })
}

// 查询教改项目详细
export function getReform(id) {
  return request({
    url: '/village/reform/' + id,
    method: 'get'
  })
}

// 新增教改项目
export function addReform(data) {
  return request({
    url: '/village/reform',
    method: 'post',
    data: data
  })
}

// 修改教改项目
export function updateReform(data) {
  return request({
    url: '/village/reform',
    method: 'put',
    data: data
  })
}

// 删除教改项目
export function delReform(id) {
  return request({
    url: '/village/reform/' + id,
    method: 'delete'
  })
}
